package org.javatribe.calculator.module.handler;

import org.javatribe.calculator.common.EventWrapper;
import org.javatribe.calculator.common.Handler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Calendar;
import java.util.Date;
import java.util.EventObject;
import java.util.Locale;
import java.util.TimeZone;

/**
 * Created by Wenxin on 2017/9/16.
 */
public class LogHandler implements Handler {

    private static Logger logger = LoggerFactory.getLogger(LogHandler.class);

    @Override
    public void handle(EventWrapper eventWrapper) {
        logger.info("{} is trigger.", eventWrapper.getSourceName());
        eventWrapper.proccess();
    }
}
